package com.chen.blue.domain.dto.business;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * Created By CLT On 2024/6/21.
 */
@SuppressWarnings("all")
@Getter
@Setter
@ApiModel("竞赛结果添加参数")
public class ContestResultDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Length(max = 10, message = "获奖等级最多10个字符")
    @NotNull(message = "获奖等级不能为空")
    @ApiModelProperty(value = "获奖等级", required = true, example = "一等奖")
    private String awardGrade;

    @NotNull(message = "是否获奖不能为空")
    @ApiModelProperty(value = "是否获奖", required = true, example = "true")
    private Boolean hasAward;

    @Length(max = 20, message = "获奖名次最多20个字符")
    @NotNull(message = "类别不能为空")
    @ApiModelProperty(value = "类别", required = true, example = "1")
    private String type;

    @Length(max = 64, message = "指导老师姓名最多64个字符")
    @NotNull(message = "指导老师部门不能为空")
    @ApiModelProperty(value = "指导老师部门", required = true, example = "信息工程学院")
    private String deptName;

    @NotNull(message = "参赛时间不能为空")
    @ApiModelProperty(value = "参赛时间", required = true, example = "2024-06-21 12:00:00")
    private Date joinTime;

}
